<!doctype HTML>

<style>
#frame {
  width: 200px;
  height: 200px;
  overflow-y: scroll;
}
#parent {
  width: 100px;
  height: 500px;
  background-color: lightblue;
}
#child {
  width: 50px;
  height: 50px;
  background-color: blue;
  will-change: transform;
}
</style>

<div id="frame">
  <div id="parent">
    <div id="child"></div>
  </div>
</div>

